!<template>
    <el-form ref="form" :model="form" label-width="80px">
        <el-form-item label="商品名称">
            <el-input></el-input>
        </el-form-item>
        <el-form-item label="商品类别">
            <el-select></el-select>
        </el-form-item>
        <el-form-item label="活动时间">
            <el-col :span="11">
                <el-date-picker type="date" placeholder="请选择开始日期"></el-date-picker>
            </el-col>
            <el-col :span="2">至</el-col>
            <el-col :span="11">
                <el-date-picker type="date" placeholder="请选择结束日期"></el-date-picker>
            </el-col>
        </el-form-item>
        <el-form-item label="商品性质">
            <el-checkbox-group v-model="checkboxd">
                <el-checkbox label="蔬菜" name="type"></el-checkbox>
                <el-checkbox label="蛋类" name="type"></el-checkbox>
                <el-checkbox label="肉品" name="type"></el-checkbox>
                <el-checkbox label="主食" name="type"></el-checkbox>
                <el-checkbox label="零食" name="type"></el-checkbox>
            </el-checkbox-group>
        </el-form-item>
        <el-form-item>
            <el-radio-group lang="售卖方式" v-model="saleType">
                <el-radio label="线上" name="online"></el-radio>
                <el-radio label="线下" name="online"></el-radio>
            </el-radio-group>
        </el-form-item>
        <el-form-item label="备注">
            <el-input type="textarea"></el-input>
        </el-form-item>
        <el-form-item>
            <el-button type="primary" @click="onsubmit">确定</el-button>
            <el-button>取消</el-button>
        </el-form-item>
    </el-form>
</template>

<script>
export default {
    name: "goodForm",
    props: [],
    data(){
        return {
            checkboxd: [],
            saleType:''
        };
    }
}
</script>

<style lang="less" scoped>

</style>